From: Colin Walters Date: Fri, 11 Feb 2022 19:09:49 +0000 (-0500) Subject: core: Mark `ostree_create_directory_metadata` as `(not nullable)` X-Git-Tag: archive/raspbian/2022.2-3+rpi1^2~15^2^2~13^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=ea5f7b0f38ee0b7a56cd5e3bfe2025207dd44a12;p=ostree.git core: Mark `ostree_create_directory_metadata` as `(not nullable)` So I can drop an unnecessary use of `unwrap()` in Rust. --- diff --git a/src/libostree/ostree-core.c b/src/libostree/ostree-core.c index 038606e9..0671ed35 100644 --- a/src/libostree/ostree-core.c +++ b/src/libostree/ostree-core.c @@ -1141,7 +1141,7 @@ _ostree_compare_object_checksum (OstreeObjectType objtype, * @dir_info: a #GFileInfo containing directory information * @xattrs: (allow-none): Optional extended attributes * - * Returns: (transfer full): A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META + * Returns: (transfer full) (not nullable): A new #GVariant containing %OSTREE_OBJECT_TYPE_DIR_META */ GVariant * ostree_create_directory_metadata (GFileInfo *dir_info,